{template "content","header"}
    <!-- 幻灯片s -->
      <div id="Slideshow">
      {pc:content  action="position" posid="1" catid="13"  order="listorder DESC" thumb="1" num="5" moreinfo="1" return="scrollImg"}{/pc}
          <ul class="pics">
          {loop $scrollImg  $Img}
                <li>
                     <a href="{$Img['url']}"><img src="{$Img['thumb']}" /></a>
                </li>
          {/loop}
          </ul>
          <a class="prev" href="javascript:void(0)"></a>
          <a class="next" href="javascript:void(0)"></a>
          <div class="num">
              <ul></ul>
           </div>
      </div>
        <script type="text/javascript">
        /*鼠标移过，左右按钮显示*/
        $("#Slideshow").hover(function(){
          $(this).find(".prev,.next").fadeTo("show",0.1);
        },function(){
          $(this).find(".prev,.next").hide();
        })
        /*鼠标移过某个按钮 高亮显示*/
        $(".prev,.next").hover(function(){
          $(this).fadeTo("show",0.7);
        },function(){
          $(this).fadeTo("show",0.1);
        })
        $("#Slideshow").slide({ titCell:".num ul" , mainCell:".pics" , effect:"fold", autoPlay:true, delayTime:700 , interTime:4000, autoPage:true });
        </script>
      {pc:get sql="select * from phpcms_category where parentid = 0 and modelid=3 and isindexcol=1 order by listorder ASC,catid ASC"  return="picArr"}{/pc}
      {php $pic1 = $picArr[0];}<!-- 产品中心 -->
      {php $pic2 = $picArr[1];}<!-- 客户案例 -->
      {php $pic3 = $picArr[2];}<!-- 针对产品 -->
      {php $pic4 = $picArr[3];}<!-- 企业荣誉 -->
      {if $pic1}
      <div class="home--products-category animated fadeIn">
      	   <div class="container">
      	   	    <div class="partials--module-title">
      	   	    	<span class="left">产品</span>
      	   	    	<span class="right">分类</span>
      	   	    	<div class="divider"></div>
      	   	    </div>
      	   	    <div class="partials--module-title-slogan">个性定制随心所欲
      	   	    </div>
                {php $pic1id = $pic1['catid'];}
                {pc:get sql="select * from phpcms_category where parentid=$pic1id  
                and modelid=3 and isindexguide=1 order by listorder ASC"  return="picCatArr"}
                {/pc}
      	   	    <ul class="list">
                {loop $picCatArr  $pic1cat}
      	   	    	<li class="item">
      	   	    		<img src="{$pic1cat['image']}" class="picture" alt="">
      	   	    		<span class="name">{$pic1cat['catname']}</span>
      	   	    		<p class="intro">详细介绍 {$pic1cat['description']}</p>
      	   	    		<a class="detail-link" href="{$pic1cat['url']}">查看详情</a>
      	   	    	</li>
      	   	    	{/loop}
      	   	    	<li class="item justify-left-fix"></li>
      	   	    	<li class="item justify-left-fix"></li>
      	   	    	<li class="item justify-left-fix"></li>
      	   	    </ul>
      	   </div>
    </div>
    <div class="home--products  animated fadeIn">
      	   <style id="home--products-sidebar-header" scoped>
      	        .home--products .sidebar > .header:before,.home--products .sidebar > .header:after{border-left-width: 160px;}
      	   </style>
      	   <div class="container">
      	   	    <div class="sidebar">
      	   	    	<div class="header">
      	   	    		<h1 class="zh">产品直通车</h1>
      	   	    		<h2 class="en">PRODUCT</h2>
      	   	    	</div>
                  {pc:content action="category" catid="$pic1id" siteid="$siteid" num="8" return="pic1CateArr2"}{/pc}
      	   	    	<ul class="list">
                  {loop $pic1CateArr2 $pic1cat}
                    {if $n==1}
                    {php $arr[] = $pic1cat;}
                    {/if}
      	   	    		<li class="item">
      	   	    			<a href="{$pic1cat['url']}">{$pic1cat['catname']}</a>
      	   	    		</li>
      	   	      {/loop}
      	   	    	</ul>
      	   	    	<div class="footer">
      	   	    		<img class="background" src="{SKIN_PATH}images/sidebar-footer-background.jpg" alt="">
      	   	    		<label for="">全国服务热线</label>
                    {pc:content action="getOne" fields="content" where="id eq 7" name="news_data" limit="1" return="r_hotTel"}{/pc}
      	   	    	    <span class="phone">{$r_hotTel['content']}</span>
      	   	    	</div>
      	   	    </div>
      	   	    <div class="products">
      	   	    	<h1 class="category-name">
                  {$arr[0]['catname']}
      	   	    	</h1>
                  {pc:content action="lists" catid="$arr[0]['catid']" num="1" siteid="$siteid" order="id DESC" return="pclist"}{/pc}
                  {loop $pclist $ps}
      	   	    	<div class="detail">
      	   	    		<a class="l-left" href="{$ps['url']}">
      	   	    			<img class="first-product" src="{$ps['thumb']}" alt="">
      	   	    		</a>
      	   	    		<div class="l-right">
      	   	    			<h1 class="title">产品名称 :{$ps['title']}</h1>
      	   	    			<p class="intro">
      	   	    				<br>详细介绍<br>{$ps['description']}			
                      </p>
      	   	    			<ul class="link-list">
      	   	    				<li class="item is-active">
      	   	    					<a href="{$ps['url']}" class="link">我要购买</a>
      	   	    				</li>
      	   	    				<li class="item">
      	   	    					<a href="{$ps['url']}" class="link">了解详情</a>
      	   	    				</li>
      	   	    				<li class="item">
      	   	    					<a href="{$arr[0]['url']}" class="link">了解详情</a>
      	   	    				</li>
      	   	    			</ul>
      	   	    		</div>
      	   	    	</div>
                  {/loop}
      	   	    	<div class="partials--slids">
                      <div class="picScroll">
                          <div class="tempWrap">
                          {pc:content action="lists" catid="$arr[0]['catid']"  siteid="$siteid" order="id DESC" return="pclist2"}{/pc}
                              <ul>
                              {loop $pclist2 $pc2}
                                  <li>
                                     <a href="{$pc2['url']}" title="{$pc2['title']}">
                                     <img src="{$pc2['thumb']}" alt="" title="{$pc2['title']}" width="196px" height="140px;"></a>
                                  </li>
                                  {/loop}         
                              </ul>
                          </div>
                           <a class="prev prevStop"><</a>
                           <a class="next">></a>
	                    </div>
                      
                  </div>
                  <script type="text/javascript">jQuery(".picScroll").slide({ mainCell:"ul",autoPlay:true,effect:"left", vis:3, scroll:1, autoPage:true, pnLoop:false });</script>      	   	    
      	   </div>
    </div>
    {/if}
    <div class="home--banner animated fadeIn">
      	   <div class="container">
      	   	   <div class="background"></div>
      	   	   <img class="product" src="{SKIN_PATH}images/product.png" alt="">
      	   	   <div class="slogan">
      	   	   	    <p class="l-top">八年专注磨床自动化 3000位客户见证</p>
      	   	   	    <p class="l-bottom">全方位、个性化的自动化解决方案</p>
      	   	   </div>
      	   </div>
    </div>
  {if $pic2}
    <div class="home--business-case animated fadeIn">
      	   <div class="container">
      	   	    <div class="slogan">
      	   	    	<p class="zh">{$pic2['description']}</p>
      	   	    	<p class="en">{$pic2['catdir']}</p>
      	   	    </div>
      	   	    <div class="divider">
      	   	    	<a class="more" href="{$pic2['url']}">更多+</a>
      	   	    </div>
                {pc:content action="lists" catid="$pic2['catid']" siteid="$siteid" num="10" oreder="id DESC" return="caseArr"}{/pc}
      	   	    <ul class="case">
                {loop $caseArr $case}
      	   	    	<li class="item">
      	   	    		<a class="picture" href="{$case['url']}">
      	   	    			<img src="{$case['thumb']}" alt="">
      	   	    		</a>
      	   	    		<h1 class="name">{$case['title']}</h1>
      	   	    	</li>
      	   	     {/loop}
      	   	    	<li class="item justify-left-fix"></li>
      	   	    	<li class="item justify-left-fix"></li>
      	   	    	<li class="item justify-left-fix"></li>
      	   	    	<li class="item justify-left-fix"></li>
      	   	    </ul>
      	   </div>
    </div>
    {/if}
    {pc:get sql="select * from phpcms_category where parentid = 0 and modelid=0 and isindexcol=1 order by listorder ASC,catid ASC"  return="PageArr"}{/pc}
    {php $page1 = $PageArr[0];}
    {php $page2 = $PageArr[1];}
    {if $page2}
    <div class="home_why_choose">
      	   <div class="container">
      	   	    <ul class="slogan">
      	   	    	<li class="item">
      	   	    		<span class="why">WHY</span>
      	   	    	</li>
      	   	    	<li class="item">
      	   	    		<p class="choose-en">CHOOSE</p>
      	   	    		<p class="choose-zh">为什么要选择赢世</p>
      	   	    	</li>
      	   	    	<li class="item">
      	   	    		<span class="symbol">?</span>
      	   	    	</li>
      	   	    </ul>
      	   	    <ul class="advantages">
      	   	    	<li class="item">
      	   	    		<div class="icon">
      	   	    			<img src="{SKIN_PATH}images/gears-64x64.png" alt="">
      	   	    		</div>
      	   	    		<h1 class="title">量身定制</h1>
      	   	    		<p class="intro">满足需求    想变就变</p>
      	   	    		<a class="link" href="{$page2['url']}">立即咨询</a>
      	   	    	</li>
      	   	    	<li class="item">
      	   	    		<div class="icon">
      	   	    			<img src="{SKIN_PATH}images/diamond-64x64.png" alt="">
      	   	    		</div>
      	   	    		<h1 class="title">专利技术</h1>
      	   	    		<p class="intro">拥有多项专利技术, 出口欧美</p>
      	   	    		<a class="link" href="{$page2['url']}">立即咨询</a>
      	   	    	</li>
      	   	    	<li class="item">
      	   	    		<div class="icon">
      	   	    			<img src="{SKIN_PATH}images/improvement-64x64.png" alt="">
      	   	    		</div>
      	   	    		<h1 class="title">方便维护</h1>
      	   	    		<p class="intro">提供免费维护 质量稳,低耗损,轻松维护</p>
      	   	    		<a class="link" href="{$page2['url']}">立即咨询</a>
      	   	    	</li>
      	   	    	<li class="item">
      	   	    		<div class="icon">
      	   	    			<img src="{SKIN_PATH}images/truck-facing-right-64x64.png" alt="">
      	   	    		</div>
      	   	    		<h1 class="title">上门服务</h1>
      	   	    		<p class="intro">送货上门、现场安装、指导操作 24小时随时响应!</p>
      	   	    		<a class="link" href="{$page2['url']}">立即咨询</a>
      	   	    	</li>
      	   	    	<li class="justify-left-fix"></li>
      	   	    </ul>
      	   </div>
    </div>
    {/if}
    <div class="home--impression">
      	   <div class="container">
      	   	    <div class="title">
      	   	    	<h1 class="en">IMPRESSION</h1>
      	   	    	<h1 class="zh">印象贏世</h1>
      	   	    </div>
      	   	    <div class="l-left">
      	   	    	<ul class="list">
      	   	    		<li class="item l-01">
      	   	    			<img src="{SKIN_PATH}images/logo2.png" alt="">
      	   	    			<div class="name">
      	   	    				<span class="zh">赢世自动化设备</span>
      	   	    				<span class="en">YINGSHI AUTOMATION</span>
      	   	    			</div>
      	   	    			<div class="detail">
      	   	    				<p class="l-01">CHUNQI</p>
      	   	    				<p class="l-02">AUTOMATION</p>
      	   	    				<p class="l-03">EQUIPMENT</p>
      	   	    				<p class="l-04">专注<span class="point">磨床自动化</span></p>
      	   	    				<p class="l-05">Focused on grinding machine automation</p>
      	   	    				<p class="l-06">www.13912342929.com</p>
      	   	    			</div>
      	   	    		</li>
      	   	    		<li class="item l-02">
      	   	    			<img src="{SKIN_PATH}images/01.jpg" alt="">
      	   	    		</li>
      	   	    		<li class="item l-03">
      	   	    			<img src="{SKIN_PATH}images/02.jpg" alt="">
      	   	    		</li>
      	   	    		<li class="item l-04">
      	   	    			<img src="{SKIN_PATH}images/03.jpg" alt="">
      	   	    		</li>
      	   	    	</ul>
      	   	    </div>
      	   	    <div class="l-right">
      	   	    	<div class="about">
                  {pc:content action="getOne" fields="content" where="catid eq 24" name="page" limit="1" return="r_jianjie"}{/pc}
      	   	    		<h2 class="title">公司简介</h2>   
      	   	    		<div class="content">
      	   	    					{$r_jianjie['content']}	
      	   	    		</div>
      	   	    	</div>
                  {if $pic4}
      	   	    	<div class="honors">
      	   	    		<h2 class="title">{$pic4['catname']}</h2>
      	   	    		<div class="partials--slids">
      	   	    			   <div class="picScroll1">
                          <div class="tempWrap">
                          {pc:content action="lists" catid="$pic4['catid']"  siteid="$siteid" order="id DESC" return="honors"}{/pc}
                              <ul>
                              {loop $honors $h}                              
                                  <li>
                                     <a href="{$h['url']}" title="{$h['title']}">
                                     <img src="{$h['thumb']}" alt="" title="{$h['title']}" ></a>
                                  </li>
                              {/loop}   
                              </ul>
                          </div>
                           <a class="prev prevStop"><</a>
                           <a class="next">></a>
                       </div>
                      <script type="text/javascript">jQuery(".picScroll1").slide({ mainCell:"ul",autoPlay:true,effect:"left", vis:2, scroll:1, autoPage:true, pnLoop:false });</script> 
      	   	    		</div>
      	   	    	</div>
                  {/if}
      	   	    </div>
      	   </div>
    </div>
    {if $pic3}
    <div class="home--for-the-products">
      	   <div class="container">
      	   	    <div class="partials--module-title">
      	   	    	<span class="left left1">针对</span>
      	   	    	<span class="right right1">产品</span>
      	   	    	<div class="divider"></div>
      	   	    </div>
      	   	    <div class="partials--module-title-slogan">{$pic3['description']}</div>
      	   	        <div class="partials--slids">
      	   	    	       <div class="picScroll2">
                          <div class="tempWrap">
                           {pc:content action="lists" catid="$pic3['catid']"  siteid="$siteid" order="id DESC" return="divider"}{/pc}
                              <ul>
                              {loop $divider $did}
                                  <li>
                                     <a href="{$did['url']}" title="{$did['title']}">
                                     <img src="{$did['thumb']}" alt="" title="{$did['title']}" ></a>
                                  </li>
                              {/loop}      
                              </ul>
                          </div>
                           <a class="prev prevStop"><</a>
                           <a class="next">></a>
                       </div>
                      <script type="text/javascript">jQuery(".picScroll2").slide({ mainCell:"ul",autoPlay:true,effect:"left", vis:5, scroll:1, autoPage:true, pnLoop:false });</script>
      	   	        </div>
      	   	    </div>
      	   </div>
    </div>
    {/if}
    {pc:get sql="select * from phpcms_category where parentid = 0 and modelid=11 and isindexcol=1 order by listorder ASC,catid ASC"  return="video"}{/pc}
    {php $video1 = $video[0];}
    {pc:get sql="select * from phpcms_category where parentid = 0 and modelid=1 and isindexcol=1 order by listorder ASC,catid ASC"  return="news"}{/pc}
    {php $news1 = $news[0];}
    <div class="home--video-and-news">
      	   <div class="container">
                {if $video1}
      	   	    <div class="video">
      	   	    	<div class="partials--module-title-more">
      	   	    		<h2 class="title"><span class="l-left">视频</span><span class="l-right">中心</span></h2>
      	   	    		<a class="more" href="{$video1['url']}">查看更多</a>
      	   	    	</div>
                   {pc:content action="lists" catid="$video1['catid']"  siteid="$siteid" order="id DESC" num="1" return="vidArr"}{/pc}
                  {loop $vidArr $vid}
      	   	    	<div class="first-video">
      	   	    		<a class="picture" href="{$vid['url']}">
      	   	    		   <img src="{$vid['thumb']}">
      	   	    		</a>
      	   	    		<div class="detail">
      	   	    			<span class="title">{$vid['title']}</span>
      	   	    			<a class="detail-link" href="{$vid['url']}">「查看详情」</a>
      	   	    		</div>
      	   	    	</div>
                  {/loop}
      	   	    </div>
                {/if}
                {if $news1}
      	   	    <div class="news">
      	   	    	<div class="partials--module-title-more">
      	   	    	    <h2 class="title">
      	   	    	         <span class="l-left">新闻</span>
      	   	    	         <span class="l-right">中心</span>
      	   	    	    </h2>
      	   	    	    <a class="more" href="{$news1['url']}">查看更多</a>
      	   	    	</div>
                  {pc:content action="lists" catid="$news1['catid']"  siteid="$siteid" order="id DESC" num="6" return="news1Arr"}{/pc}
                  {loop $news1Arr $na}
                  {if $n==1}
      	   	    	<div class="first-news">
      	   	    	    <a class="picture" href="{$na['url']}">
      	   	    	        <img src="{SKIN_PATH}images/logo.png" width="138px" height="86px">
      	   	    	    </a>
      	   	    	    <div class="info">
      	   	    	        <a class="title" href="{$na['url']}">{$na['title']}</a>
      	   	    	        <p class="intro">{$na['description']}<a class="detail-link" href="{$na['url']}">「查看详情」</a>
      	   	    	        </p>
      	   	    	    </div>
      	   	    	</div>
                  {else}
                  {php $newslist[] = $na;}
                  {/if}
                  {/pc}
                  {/loop}
      	   	    	<ul class="latest-news">
                      {loop $newslist $nl}
      	   	    	    <li class="item">
      	   	    	        <a href="{$nl['url']}">{$nl['title']}</a>
      	   	    	    </li>
      	   	    	    {/loop}
      	   	    	</ul>
      	   	    </div>
                {/if}
      	   </div>
    </div>
    {pc:content action="getRecord" name="category" fields="catid,catname,catdir" where="catid eq 29" return="links"}{/pc}
    {php $link=$links[0];}
    {if $link}
    <div class="home--links">
      	   <div class="container">
      	   	    <h2 class="title">
      	   	        <span class="zh">{$link['catname']}</span>
      	   	        <span class="divider">/</span>
      	   	        <span class="en">{$link['catdir']}</span>
      	   	    </h2>
                {pc:content action="lists" catid="$link['catid']"  siteid="$siteid" order="id DESC" num="10" return="linkArr"}{/pc}
      	   	    <ul class="links">
                  {loop $linkArr $lk}
      	   	        <li class="item">
      	   	            <a href="{$lk['url']}" target="_blank">{$lk['title']}</a>
      	   	        </li>
                  {/loop}
      	   	    </ul>
      	   	    <hr>
      	   </div>
    </div>
    {/if}
</div>
{template "content","footer"}